//
//  CollectionViewController.m
//  礼物
//
//  Created by dllo on 15/11/9.
//  Copyright © 2015年 liangsicheng. All rights reserved.
//

#import "CollectionViewController.h"

@interface CollectionViewController ()

@end

@implementation CollectionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title=@"我的收藏";
    self.collectionView=[[CollectionView alloc]initWithFrame:MAINSCREEN];
    [self.view addSubview:self.collectionView];
    self.collectionView.delegate=self;
    self.collectionView.CollectionViewCellArray=[[DataBaseHandle shareDataBaseHandle]select];
    [self.collectionView.myTableView reloadData];
}
-(void)collectionViewPushDetailController:(Model *)model
{
    GiftDetailViewController *detailVC=[[GiftDetailViewController alloc]init];
    detailVC.model=model;
    detailVC.hidesBottomBarWhenPushed=YES;
    [self.navigationController pushViewController:detailVC animated:YES];
    

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
